package com.witsight.cassandra.bean;

import java.util.HashSet;
import java.util.Set;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import com.witsight.platform.model.IBaseObject;
import com.witsight.platform.util.io.XMLUtil;

/**   
 * 说明：Cassandra 检索配置对象
 * @Title: CassandraQuery.java 
 * @Package com.witsight.cassandra.bean 
 * @See: {@link IBaseObject}
 * 		 {@link XMLUtil}
 * Copyright: Copyright (c) 2017
 * Company:sany huax witsight team by product
 * @author: penght  
 * @date: 2017年9月20日 下午2:37:44 
 * @version: V1.0
 *
 */
@XmlRootElement(name = "cassandra-mappings")
public class CassandraMappings implements IBaseObject {
	private static final long serialVersionUID = -8505071327022475096L;
	// 表名称
	private String table;
	// 文件名称
	private String name;	
	@XmlTransient
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	// Query 信息集合
	private Set<NameQuery> nameQuerys = new HashSet<NameQuery>();
	@XmlAttribute(name = "table", required = true)
	public String getTable() {
		return table;
	}
	public void setTable(String table) {
		this.table = table;
	}
	@XmlElement(name="query")
	public Set<NameQuery> getNameQuerys() {
		return nameQuerys;
	}
	public void setNameQuerys(Set<NameQuery> nameQuerys) {
		this.nameQuerys = nameQuerys;
	}
}
